/* Class68 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */

public class Class68 {
	public static JString aClass3_1185;
	public static Class57 aClass57_1186;
	public static JString aClass3_1187 = Class39_Sub5_Sub9.createJString(113, "Wen m-Ochten Sie entfernen?");
	public static Class39_Sub5_Sub10_Sub4 aClass39_Sub5_Sub10_Sub4_1188;
	public static Class39_Sub5_Sub10_Sub4 aClass39_Sub5_Sub10_Sub4_1189;
	public static int anInt1190;
	public static JString aClass3_1191;
	public static JString aClass3_1192;
	public static JString aClass3_1193;
	public static JString aClass3_1194 = Class39_Sub5_Sub9.createJString(122, "Zu viele Anmelde)2Versuche von Ihrer Adresse");

	public static void method1111(int i, long l) {
		if (l != 0L) {
			if (Class4.anInt62 >= 100 && Class63.anInt1126 != 1 || Class4.anInt62 >= 200)
				Class42.pushMessage(Class66.aClass3_1164, Class1.aClass3_44, false, 0);
			else {
				JString class3 = Deque.longToString(l, (byte) 96).capitalizeAfterQuestion((byte) -116);
				for (int i_0_ = 0; Class4.anInt62 > i_0_; i_0_++) {
					if (Applet_Sub1.aLongArray2[i_0_] == l) {
						Class42.pushMessage(Class66.aClass3_1164, (Class39_Sub5_Sub11.method708(new JString[] { class3, (Class39_Sub5_Sub16.aClass3_1981) }, i ^ 0x38e9)), false, 0);
						return;
					}
				}
				for (int i_1_ = i; i_1_ < Class15.anInt282; i_1_++) {
					if (l == Class39_Sub5_Sub9.aLongArray1808[i_1_]) {
						Class42.pushMessage(Class66.aClass3_1164, (Class39_Sub5_Sub11.method708((new JString[] { Class39_Sub11.aClass3_1454, class3, Node.aClass3_727 }), 14569)), false, 0);
						return;
					}
				}
				if (!class3.equals((Class7.aClass39_Sub5_Sub4_Sub4_Sub2_109.aClass3_2521))) {
					Class39_Sub5_Sub4_Sub1.aClass3Array2188[Class4.anInt62] = class3;
					Applet_Sub1.aLongArray2[Class4.anInt62] = l;
					Player.anIntArray2533[Class4.anInt62] = 0;
					Class4.anInt62++;
					Class39_Sub14.aBoolean1520 = true;
					PacketStream.outputStream.writePacket(90);
					PacketStream.outputStream.writeLong(true, l);
				}
			}
		}
	}

	public static void method1112(int i, byte i_2_) {
		if (i != -1 && Renderable.aBooleanArray1727[i]) {
			Class39_Sub5_Sub16.aClass9_1979.method153(i, 12319);
			if (Class62_Sub1.interfaceCache[i] != null) {
				boolean bool = true;
				for (int i_3_ = 0; i_3_ < (Class62_Sub1.interfaceCache[i]).length; i_3_++) {
					if (Class62_Sub1.interfaceCache[i][i_3_] != null) {
						if ((Class62_Sub1.interfaceCache[i][i_3_].drawType) == 2)
							bool = false;
						else
							Class62_Sub1.interfaceCache[i][i_3_] = null;
					}
				}
				if (bool)
					Class62_Sub1.interfaceCache[i] = null;
				Renderable.aBooleanArray1727[i] = false;
			}
		}
	}

	public static int method1113(Stream class39_sub6, JString class3, int i) {
		int i_4_ = class39_sub6.currentOffset;
		class39_sub6.writeByteOrShort((byte) 30, class3.length);
		class39_sub6.currentOffset += Login.aClass40_472.method886(class3.characters, 255, 0, class3.length, class39_sub6.currentOffset, class39_sub6.buffer);
		return class39_sub6.currentOffset - i_4_;
	}

	public static void method1114(int i) {
		aClass3_1194 = null;
		aClass39_Sub5_Sub10_Sub4_1189 = null;
		aClass3_1191 = null;
		aClass3_1187 = null;
		aClass3_1185 = null;
		aClass3_1193 = null;
		aClass57_1186 = null;
		aClass39_Sub5_Sub10_Sub4_1188 = null;
		aClass3_1192 = null;
	}

	public static int applyConfigValues(int i, int i_5_, RSInterface class39_sub5_sub17) {
		if (class39_sub5_sub17.configValues == null || i >= class39_sub5_sub17.configValues.length)
			return -2;
		try {
			int[] is = class39_sub5_sub17.configValues[i];
			int i_6_ = 0;
			int i_7_ = 0;
			int i_8_ = 0;
			for (;;) {
				int i_9_ = is[i_6_++];
				int i_10_ = 0;
				int i_11_ = 0;
				if (i_9_ == 0)
					return i_7_;
				if (i_9_ == 15)
					i_11_ = 1;
				if (i_9_ == 1)
					i_10_ = Class31.anIntArray555[is[i_6_++]];
				if (i_9_ == 16)
					i_11_ = 2;
				if (i_9_ == 17)
					i_11_ = 3;
				if (i_9_ == 2)
					i_10_ = Class39_Sub12.anIntArray1491[is[i_6_++]];
				if (i_9_ == 3)
					i_10_ = Class39_Sub14.anIntArray1543[is[i_6_++]];
				if (i_9_ == 4) {
					int i_12_ = is[i_6_++] << 16;
					i_12_ += is[i_6_++];
					RSInterface class39_sub5_sub17_13_ = Class37.getInterface((byte) 61, i_12_);
					int i_14_ = is[i_6_++];
					if (i_14_ != -1 && (!Class26.method291(-123, i_14_).aBoolean1653 || Class19.aBoolean367)) {
						for (int i_15_ = 0; (i_15_ < class39_sub5_sub17_13_.anIntArray2087.length); i_15_++) {
							if (class39_sub5_sub17_13_.anIntArray2087[i_15_] == i_14_ + 1)
								i_10_ += (class39_sub5_sub17_13_.anIntArray2073[i_15_]);
						}
					}
				}
				if (i_9_ == 5)
					i_10_ = Class66.anIntArray1152[is[i_6_++]];
				if (i_9_ == 6)
					i_10_ = (Class53.anIntArray952[Class39_Sub12.anIntArray1491[is[i_6_++]] - 1]);
				if (i_9_ == 7)
					i_10_ = Class66.anIntArray1152[is[i_6_++]] * 100 / 46875;
				if (i_9_ == 8)
					i_10_ = Class7.aClass39_Sub5_Sub4_Sub4_Sub2_109.anInt2506;
				if (i_9_ == 9) {
					for (int i_16_ = 0; i_16_ < 25; i_16_++) {
						if (Class50.aBooleanArray934[i_16_])
							i_10_ += Class39_Sub12.anIntArray1491[i_16_];
					}
				}
				if (i_9_ == 10) {
					int i_17_ = is[i_6_++] << 16;
					i_17_ += is[i_6_++];
					RSInterface class39_sub5_sub17_18_ = Class37.getInterface((byte) 125, i_17_);
					int i_19_ = is[i_6_++];
					if (i_19_ != -1 && (!Class26.method291(-69, i_19_).aBoolean1653 || Class19.aBoolean367)) {
						for (int i_20_ = 0; (class39_sub5_sub17_18_.anIntArray2087.length > i_20_); i_20_++) {
							if (class39_sub5_sub17_18_.anIntArray2087[i_20_] == i_19_ + 1) {
								i_10_ = 999999999;
								break;
							}
						}
					}
				}
				if (i_9_ == 11)
					i_10_ = Class39_Sub9.runEnergy;
				if (i_9_ == 12)
					i_10_ = Class46_Sub1.anInt1562;
				if (i_9_ == 13) {
					int i_21_ = Class66.anIntArray1152[is[i_6_++]];
					int i_22_ = is[i_6_++];
					i_10_ = (i_21_ & 1 << i_22_) == 0 ? 0 : 1;
				}
				if (i_9_ == 14) {
					int i_23_ = is[i_6_++];
					i_10_ = Class44.method913(i_23_, (byte) -83);
				}
				if (i_9_ == 18)
					i_10_ = (Class65.absoluteRegionX + (Class7.aClass39_Sub5_Sub4_Sub4_Sub2_109.anInt2301 >> 7));
				if (i_9_ == 19)
					i_10_ = (Class7.aClass39_Sub5_Sub4_Sub4_Sub2_109.anInt2275 >> 7) + Class35.absoluteRegionY;
				if (i_9_ == 20)
					i_10_ = is[i_6_++];
				if (i_11_ != 0)
					i_8_ = i_11_;
				else {
					if (i_8_ == 0)
						i_7_ += i_10_;
					if (i_8_ == 1)
						i_7_ -= i_10_;
					if (i_8_ == 2 && i_10_ != 0)
						i_7_ /= i_10_;
					if (i_8_ == 3)
						i_7_ *= i_10_;
					i_8_ = 0;
				}
			}
		} catch (Exception exception) {
			return -1;
		}
	}

	static {
		aClass3_1191 = Class39_Sub5_Sub9.createJString(123, "Schlie-8en");
		aClass3_1193 = Class39_Sub5_Sub9.createJString(103, "Duell akzeptieren");
		aClass3_1185 = (Class39_Sub5_Sub9.createJString(106, "Begeben Sie sich in ein freies Gebiet)1 um"));
		aClass3_1192 = Class39_Sub5_Sub9.createJString(126, "null");
		anInt1190 = 0;
	}
}
